package com.example.booksystem.biz;

import com.example.booksystem.bean.User;
import com.example.booksystem.dao.UserDao;

public class UserBiz {
    //UserDao
    UserDao userDao = new UserDao();

    //查找用户
    public User getUser(String name,String pwd){
        User user = userDao.getUser(name, pwd);
        return user;
    }

    //修改密码
    public int modifyPwd(long id,String pwd){
        return userDao.modifyPwd(id, pwd);
    }
}
